﻿namespace KnownCMS.Admin.Pages.BaseData;

[Route("/bds/users")]
public class BdUserList : BaseTablePage<CmUser>
{
    private ICommonService Service;

    protected override async Task OnInitPageAsync()
    {
        await base.OnInitPageAsync();
        Service = await CreateServiceAsync<ICommonService>();
        Table.OnQuery = Service.QueryUsersAsync;
    }

    public async void Export() => await Table.ExportDataAsync();
}